#objdump: -dr --prefix-addresses --show-raw-insn
#name: NIOS2 R2 LDWM instructions
#as: -march=r2

# Test the LDWM instructions

.*: +file format elf32-littlenios2

Disassembly of section .text:
0+0000 <[^>]*> c00105e8 	ldwm	\{r2\},--\(r23\)
0+0004 <[^>]*> c00205e8 	ldwm	\{r3\},--\(r23\)
0+0008 <[^>]*> c00405e8 	ldwm	\{r4\},--\(r23\)
0+000c <[^>]*> c00805e8 	ldwm	\{r5\},--\(r23\)
0+0010 <[^>]*> c01005e8 	ldwm	\{r6\},--\(r23\)
0+0014 <[^>]*> c02005e8 	ldwm	\{r7\},--\(r23\)
0+0018 <[^>]*> c04005e8 	ldwm	\{r8\},--\(r23\)
0+001c <[^>]*> c08005e8 	ldwm	\{r9\},--\(r23\)
0+0020 <[^>]*> c10005e8 	ldwm	\{r10\},--\(r23\)
0+0024 <[^>]*> c20005e8 	ldwm	\{r11\},--\(r23\)
0+0028 <[^>]*> c40005e8 	ldwm	\{r12\},--\(r23\)
0+002c <[^>]*> c80005e8 	ldwm	\{r13\},--\(r23\)
0+0030 <[^>]*> c00128a8 	ldwm	\{r14\},\(r2\)\+\+
0+0034 <[^>]*> c00328a8 	ldwm	\{r14,r15\},\(r2\)\+\+
0+0038 <[^>]*> c00728a8 	ldwm	\{r14,r15,r16\},\(r2\)\+\+
0+003c <[^>]*> c00f28a8 	ldwm	\{r14,r15,r16,r17\},\(r2\)\+\+
0+0040 <[^>]*> c01f28a8 	ldwm	\{r14,r15,r16,r17,r18\},\(r2\)\+\+
0+0044 <[^>]*> c03f28a8 	ldwm	\{r14,r15,r16,r17,r18,r19\},\(r2\)\+\+
0+0048 <[^>]*> c07f28a8 	ldwm	\{r14,r15,r16,r17,r18,r19,r20\},\(r2\)\+\+
0+004c <[^>]*> c0ff28a8 	ldwm	\{r14,r15,r16,r17,r18,r19,r20,r21\},\(r2\)\+\+
0+0050 <[^>]*> c1ff28a8 	ldwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22\},\(r2\)\+\+
0+0054 <[^>]*> c3ff28a8 	ldwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22,r23\},\(r2\)\+\+
0+0058 <[^>]*> c7ff28a8 	ldwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22,r23,fp\},\(r2\)\+\+
0+005c <[^>]*> cfff28a8 	ldwm	\{r14,r15,r16,r17,r18,r19,r20,r21,r22,r23,fp,ra\},\(r2\)\+\+
0+0060 <[^>]*> c2210b68 	ldwm	\{r2,r7,r11\},\(r13\)\+\+
0+0064 <[^>]*> c2214b68 	ldwm	\{r2,r7,r11\},\(r13\)\+\+,ret
0+0068 <[^>]*> c2211b68 	ldwm	\{r2,r7,r11\},\(r13\)\+\+,writeback
0+006c <[^>]*> c2215b68 	ldwm	\{r2,r7,r11\},\(r13\)\+\+,writeback,ret
